package com.retallife.admin.pojo.User;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "增加用户实体类",description = "这是增加用户的信息对象")
public class UserAddVo {
//    @ApiModelProperty(hidden = true)表示不需要在swagger页面进行展示
//    required表示该属性为必需的属性。

    @ApiModelProperty(value = "用户的名字")
    private String userName;

    @ApiModelProperty(value = "用户的密码")
    private String userPassword;


    @ApiModelProperty(value = "用户的性别")
    private String userSex;

    @ApiModelProperty(value = "用户的年龄")
    private int userAge;

    @ApiModelProperty(value = "用户的地址")
    private String userAddress;

    @ApiModelProperty(value = "用户的电话")
    private String userTelephone;

    @ApiModelProperty(value = "用户的邮箱", required = true)
    @NotBlank
    private String userEmail;
}
